import { createSlice } from '@reduxjs/toolkit';

const counterSlice = createSlice({
  name: 'counter',
  initialState: {
    count: 0,
  },
  reducers: {
    todoAdded(state, action) {
      console.log(state, action);
    },
    todoToggled(state, action) {
      console.log(state, action);
    },
  },
});

export const { todoAdded, todoToggled } = counterSlice.actions;
export default counterSlice.reducer;
